import easyScroll from "./scroll";

/**
 * 平滑卷起
 * @param {HTMLElement} target 需要卷起的Ele
 * @param {number} targetScrollTop 需要卷起的高度
 */
 export const easeScroll = (target, targetScrollTop) => {
    easyScroll({
        scrollableDomEle: target,
        direction: "bottom",
        duration: 300,
        easingPreset: "easeInQuad",
        scrollAmount: targetScrollTop - target.scrollTop
    });
}